<div class="row-fluid">
    <div class="table-header">
        Danh sách sản phẩm
        <div class="pull-right">
            <a class="btn btn-small btn-success" href='<?php echo site_url("/receipt/addproduct/$receiptId")?>'>Thêm <i class="icon-arrow-right icon-on-right bigger-110"></i></a>
        </div>
    </div>
    <table id="table_report" class="table table-striped table-bordered table-hover dataTable">
        <thead>
            <tr>
                <th>Mã sản phẩm</th>
                <th>Tên sản phẩm</th>
                <th>Số lượng dự kiến</th>
                <th>Số lượng thực tế nhập</th>
                <th>Giá</th>
            </tr>
        </thead>
        <tbody>
                  <?php foreach ($lstProduct as $p) { ?>
                    <tr>
                        <td><?php echo $p->ProductId ?></td>
                        <td>
                            
                            <?php echo $p->ProductName ?>
                        
                        </td>
                        <td>
                           <?php echo $p->Mount ?>                   
                        </td>                        
                        <td>
                           <?php echo $p->Mount_Real ?>                   
                        </td>
                        <td>
                           <?php echo $p->Price ?>                   
                        </td>                        
                    </tr>
                  <?php } ?>

        </tbody>

    </table>
</div>

    <script src='<?php echo base_url("/content/js/jquery.dataTables.min.js") ?>'></script>
    <script src='<?php echo base_url("/content/js/jquery.dataTables.bootstrap.js") ?>'></script>

    <script>
        $(document).ready(function () {

            var oTable = $('#table_report').dataTable({
                "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"
            });

            // oTable.fnSort([[0, 'desc']]);

        });
    </script>
